import request from '@/utils/request'

// 查询物品赔付列表
export function listHlpayouts(query) {
  return request({
    url: '/hotel/hlpayouts/list',
    method: 'get',
    params: query
  })
}

// 查询物品赔付详细
export function getHlpayouts(id) {
  return request({
    url: '/hotel/hlpayouts/' + id,
    method: 'get'
  })
}

// 新增物品赔付
export function addHlpayouts(data) {
  return request({
    url: '/hotel/hlpayouts',
    method: 'post',
    data: data
  })
}

// 修改物品赔付
export function updateHlpayouts(data) {
  return request({
    url: '/hotel/hlpayouts',
    method: 'put',
    data: data
  })
}

// 删除物品赔付
export function delHlpayouts(id) {
  return request({
    url: '/hotel/hlpayouts/' + id,
    method: 'delete'
  })
}
